<script>


$(function(){
	$('.submenu li').hover(function(){
		if(!$(this).hasClass('chover')){
		 $('.submenu li').removeClass('hover');
		 $(this).addClass('hover');
		 }
	},function(){
	$(this).removeClass('hover');
	
	})
	Height1 = $('.yinfor').height();
	Height2 = $('.leftnavi').height();
	if(Height1<Height2){
		$('.yinfor').height(Height2);
	}
	<?php 
	 if(!empty($_GET['menu'])){
	?>
		id={:I('get.menu')};	
		$('.submenu li').eq(id-1).addClass('chover');
	<?php }?>

	
	
	$('.userNav dt:gt(0)').click(function(){
	   if($(this).siblings('dd').css("display")=='none'){
				$(this).siblings('dd').css("display",'block');
				$(this).css('background-image','url("__PUBLIC__/img/tb1.jpg")');					
		}else{
				$(this).siblings('dd').css("display",'none');
				$(this).css('background-image','url("__PUBLIC__/img/tb.jpg")');					
			}	
		})
		


})
</script>

	<div class="leftnavi">
		<div class="yh">
			<div class="yh_head">
				<div class="yh_pic">
					<if condition="strlen(I('session.cidiograph')) eq 32">
					<img src="__ROOT__/Imageclass/files/{:I('session.cidiograph')}" width="56" height="56"/>
					<else />
					<img src="__PUBLIC__/img/head/{:I('session.cidiograph')}-1.png" width="56" height="56"/>
					</if>
				</div>
				<div class="yh_account">
					<p class="yh_nic">{:I('session.calias')}</p>
					<p class="yh_id">ID：{:I('session.menuid')}</p>
				</div>
				<div style="clear:both"></div>
			</div>					
		</div>
<style>
.userNav{width:100%;color:#787878;font-family:"微软雅黑";}
.navItem{margin-bottom:1px;cursor:pointer;}
.navItem.nomargin{margin-bottom:0px;}
.navItem dt {background:url(__PUBLIC__/img/tb1.jpg) no-repeat 190px 5px #dedede;height:30px;line-height:30px;font-size:16px;}
.submenu li {margin-bottom:1px;cursor:pointer;font-size:12px;padding-left:38px;height:25px; line-height:25px;}
.submenu li.hover,.submenu li.chover{background:#ccc;color:#000;}
.submenu li.chover {cursor:text;}
.navItem dt.nopic {background-image:none;background-color:#c8c8c8;color:#000;}
.navItem dt div {float:left;}
.navItem dd{width:100%;}
.navPic {margin-top:2px;}
.navPic{margin-left:12px;}
</style>
		<div class="userNav">
			<dl class="navItem nomargin">
				<dt class="nopic" onclick=window.location.href="{:U('User/index')}"><div class="navPic"><img  src="__PUBLIC__/img/zhanghu.jpg" /></div><div class="navTitle">账户管理</div></dt>
			</dl>
			<dl class="navItem">
				<dt><div class="navPic"><img  src="__PUBLIC__/img/fangjian.jpg" /></div><div class="navTitle">房间管理</div></dt>
				<dd>
					<ul class="submenu">
						<li onclick=window.location.href="{:U('Room/index')}?menu=1">我的房间</li>					
						<li onclick=window.location.href="{:U('Room/wheat')}?menu=2">上麦记录</li>					
					</ul>
				</dd>
			</dl>
			<dl class="navItem">
				<dt><div class="navPic"><img  src="__PUBLIC__/img/liwu.jpg" /></div><div class="navTitle">礼物管理</div></dt>
				<dd>
					<ul class="submenu">
						<li onclick=window.location.href="{:U('Gift/giftflow')}?menu=3">礼金流水</li>
						<li onclick=window.location.href="{:U('Gift/index')}?menu=4">送出的礼物</li>
						<li onclick=window.location.href="{:U('Gift/mygift')}?menu=5">收到的礼物</li>
					</ul>
				</dd>
				
			</dl>
			<dl class="navItem">
				<dt><div class="navPic"><img  src="__PUBLIC__/img/game.jpg" /></div><div class="navTitle">游戏管理</div></dt>
				<dd>
					<ul class="submenu">
						<li onclick=window.location.href="{:U('Game/index')}?menu=6">车行流水</li>
					</ul>
				</dd>
			</dl>			
			<dl class="navItem">
				<dt><div class="navPic"><img  src="__PUBLIC__/img/zijin.jpg" /></div><div class="navTitle">资金管理</div></dt>
				<dd>
					<ul class="submenu">
						<li onclick=window.location.href="{:U('Money/index')}?menu=7">金币流水</li>
						<if condition="I('session.ifshow') eq 1">
						<li onclick=window.location.href="{:U('Money/spendMoney')}?menu=8">划币管理</li>
						<li onclick=window.location.href="{:U('Money/mybox')}?menu=9">我的保险箱</li>
					</ul>
				</dd>
			</dl>	
			<dl class="navItem">
				<dt><div class="navPic"><img  src="__PUBLIC__/img/anquan.jpg" /></div><div class="navTitle">账户安全</div></dt>
				<dd>
					<ul class="submenu">
						<li onclick=window.location.href="{:U('Accountsafe/resetpsw')}?menu=10">修改密码</li>
						<li onclick=window.location.href="{:U('Accountsafe/index')}?menu=11">设置密保</li>
						<li onclick=window.location.href="{:U('Accountsafe/loginRecord')}?menu=12">登录记录</li>
						<else />
						<li onclick=window.location.href="{:U('Money/mybox')}?menu=8">我的保险箱</li>
					</ul>
				</dd>
			</dl>	
			<dl class="navItem">
				<dt><div class="navPic"><img  src="__PUBLIC__/img/anquan.jpg" /></div><div class="navTitle">账户安全</div></dt>
				<dd>
					<ul class="submenu">
						<li onclick=window.location.href="{:U('Accountsafe/resetpsw')}?menu=9">修改密码</li>
						<li onclick=window.location.href="{:U('Accountsafe/index')}?menu=10">设置密保</li>
						<li onclick=window.location.href="{:U('Accountsafe/loginRecord')}?menu=11">登录记录</li>						
						</if>
					</ul>
				</dd>
			</dl>				
		</div>
	</div>